package com.rn.ddd.infrastructure.engine;

/**
 * 订单状态处理器接口
 *
 * @author 然诺
 * @date 2022/3/5
 */
public interface StateProcessor<T, E> {

    /**
     * 执行
     *
     * @param context
     * @return
     * @throws Exception
     */
    Result<T> execute(StateContext<E> context) throws Exception;

}
